package rpcslotgamelogic

import (
	"context"

	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/model/slot_game"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/rpc"

	"github.com/zeromicro/go-zero/core/logx"
)

type SlotGameHistoryLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewSlotGameHistoryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SlotGameHistoryLogic {
	return &SlotGameHistoryLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *SlotGameHistoryLogic) SlotGameHistory(in *rpc.SlotGameHistoryReq) (*rpc.SlotGameHistoryRes, error) {
	// todo: add your logic here and delete this line
	m := slot_game.NewUserSlot(l.ctx, l.svcCtx)
	return m.GetHistory(in)
}
